<!-- 商品详情页 -->
<template>
  <div class="goods-page">
    <div class="loading" v-if="isLoading">
      <img src="@/assets/loading.gif" alt="" />
    </div>
    <div v-else>
      <div class="mask" v-if="showMask" @touchmove.prevent @click="hide"></div>
      <div class="mask-bottom" v-if="showMask">
        <div class="cancel" @click="abolish">
          <i class="iconfont icon-chahao"></i>
        </div>
        <div class="mask-header">
          <div class="mask-pic">
            <img :src="detailData.goods_img" alt="" />
          </div>
          <div class="mask-right">
            <div class="title">{{ detailData.goods_name }}</div>
            <div class="price">68.00</div>
            <div class="inventory">
              <span>库存：10000</span>
              <span class="num">编号：BT001279</span>
            </div>
          </div>
        </div>
        <div class="center">
          <div class="count">数量</div>
          <div class="fun">
            <button @click="buynum > 1 ? buynum-- : (buynum = 1)">-</button>
            <input type="text" v-model="buynum" />
            <button @click="buynum++">+</button>
          </div>
        </div>
        <div class="mask-func">
          <button class="b1" @click="hidepop">
            <span>加入购物车</span>
          </button>
          <button class="b2">
            <span>立即购买</span>
          </button>
        </div>
      </div>
      <div class="goods-nav1" v-if="bgFlag">
        <div class="goods-back">
          <i class="iconfont icon-jiantou3" onclick="window.history.back()"></i>
        </div>
        <div class="goods-function">
          <span>商品</span>
          <span>评论</span>
          <span>详情</span>
          <span>推荐</span>
        </div>
        <div class="goods-collection">
          <i class="iconfont icon-gerenguanzhu"></i>
        </div>
        <div class="goods-more">
          <i class="iconfont icon-gengduo1"></i>
        </div>
      </div>
      <div class="goods-nav2" v-else>
        <div class="goods-back">
          <i class="iconfont icon-jiantou3" onclick="window.history.back()"></i>
        </div>
        <div class="goods-function">
          <span
            v-for="(list, index) in lists"
            :key="index"
            :class="current === index ? active : ''"
            @click="currentStyle(index)"
            >{{ list.name }}</span
          >
        </div>
        <div class="goods-collection">
          <i class="iconfont icon-gerenguanzhu"></i>
        </div>
        <div class="goods-more">
          <i class="iconfont icon-gengduo1"></i>
        </div>
      </div>
      <div class="goods-img">
        <img :src="detailData.goods_img" alt="" />
        <div class="goods-sequence"><span class="size_18">1</span>/1</div>
      </div>
      <div class="goods-spend">
        <div class="goods-situation">
          <div class="goods-price">
            ￥<span>{{ detailData.shop_price }}</span
            >.00
          </div>
          <div class="goods-discount">￥{{ detailData.marketPrice }}</div>
          <div class="goods-sale">已售{{ detailData.sales_volume }}件</div>
        </div>
        <div class="goods-share" @click="showPoster">
          <i class="iconfont icon-fenxiang"></i>
          <span>分享</span>
        </div>
      </div>
      <div class="goods-test">
        <div class="goods-text">
          <span>{{ detailData.grade_name }}</span>
          <h2>{{ detailData.goods_name }}</h2>
        </div>
        <div class="goods-guess">视频号直播间68元福袋中奖用户领取方式</div>
      </div>
      <div class="goods-vip">
        <div class="vip">
          <img src="https://x.dscmall.cn/static/dist/img/icon-vip.png" alt="" />
          <span>高级V1P享超值优惠价￥61.20</span>
        </div>
        <div class="open">
          <span>立即开通</span>
          <i class="iconfont icon-jiantou2"></i>
        </div>
      </div>
      <div class="goods-preferential">
        <div class="goods-include">
          <div class="title">优惠</div>
          <div class="center">
            <div class="activity">
              <img src="../../images/1.png" />
              <span>可参加以下优惠活动</span>
            </div>
            <div class="vouchers">
              <div>
                <span class="s1">领券</span>
                <span class="s2">
                  <span class="s3">满100减2</span>
                </span>
              </div>
            </div>
          </div>
          <div class="more">
            <i class="iconfont icon-gengduo1"></i>
          </div>
        </div>
      </div>
      <div class="goods-center">
        <div class="select">
          <div class="title">已选</div>
          <div class="main" v-text="buynum"></div>
          <div class="more">
            <i class="iconfont icon-gengduo1" @click="pop"></i>
          </div>
        </div>
        <div class="select" @click="sent_to_the">
          <div class="title">送至</div>
          <div class="location" style="margin-left: 1rem">
            <i class="iconfont icon-dingwei" style="color: red"></i>
          </div>
          <div class="main" v-text="url"></div>
          <div class="more">
            <i class="iconfont icon-gengduo1"></i>
          </div>
        </div>
        <div class="select">
          <div class="title">运费</div>
          <div class="main" style="color: rgb(175, 116, 58)">包邮</div>
        </div>
        <div class="select">
          <div class="title">服务</div>
          <div class="main spe">
            <img
              src="https://x.dscmall.cn/storage/data/goods/services_label/%E6%AD%A3%E7%A1%AE2.png"
              alt=""
            />
            <span>不支持7天无理由退货</span>
          </div>
          <div class="more">
            <i class="iconfont icon-gengduo1"></i>
          </div>
        </div>
      </div>
      <div class="evaluation" id="detail_0">
        <h2>评价</h2>
      </div>
      <div class="detail" id="detail_1">
        <h2>详情</h2>
      </div>
      <div class="recommend" id="detail_2">
        <h2>推荐</h2>
      </div>
      <div class="letme" id="detail_3">
        <h2>我顶</h2>
      </div>
      <div class="goods-bottom">
        <div class="kefu">
          <i class="iconfont icon-kefu1"></i>
          <span>客服</span>
        </div>
        <div class="car" @click="goCar">
          <i class="iconfont icon-gouwuche"></i>
          <span>购物车</span>
        </div>
        <div class="addcar">加入购物车</div>
        <div class="buy">立即购买</div>
      </div>
      <!-- 三级联动 -->
      <div class="address">
        <mt-popup v-model="addressPopupVisible" position="bottom">
          <div class="title">
            <div>配送至</div>
            <i class="iconfont icon-chahao"></i>
          </div>
          <mt-picker :slots="slots" @change="onValuesChange"></mt-picker>
        </mt-popup>
      </div>
      <!-- 分享弹窗 -->
      <div class="share">
        <mt-popup v-model="sharePopupVisible" position="bottom">
          <div class="flex-share">
            <div class="send-friend" @click="show(1)">发送给好友</div>
            <div class="create-poster" @click="show(2)">生成海报</div>
          </div>
        </mt-popup>
      </div>
      <div @click="shift">
        <send-friend v-if="showFriend"></send-friend>
        <create-poster
          v-if="showPosterCanvas"
          :posterMessage="posterMessage"
        ></create-poster>
      </div>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';
import city from "@/mock/city.json";
import { isWechat } from "@/utils/tool";
import SendFriend from "./components/sendFriend/sendFriend.vue";
import CreatePoster from "./components/createPoster/createPoster.vue";
//省数据
let provinceArr = [];
city.provinces.province.forEach((item) => {
  provinceArr.push(item.ssqname);
});

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    SendFriend,
    CreatePoster,
  },
  data() {
    //这里存放数据
    return {
      showPosterCanvas: false,
      showFriend: false,
      sharePopupVisible: false,
      url: "河南省 郑州市 高新区",
      showSend: false,
      bgFlag: true,
      current: 0,
      active: "active",
      lists: [
        {
          name: "商品",
        },
        {
          name: "评论",
        },
        {
          name: "详情",
        },
        {
          name: "推荐",
        },
      ],
      showMask: false,
      buynum: 1,
      addressPopupVisible: false,
      slots: [
        {
          flex: 1,
          values: provinceArr,
          className: "slot1",
          textAlign: "right",
        },
        {
          divider: true,
          content: "-",
          className: "slot2",
        },
        {
          flex: 1,
          values: ["市辖区", "市辖县"],
          className: "slot3",
          textAlign: "left",
        },
        {
          divider: true,
          content: "-",
          className: "slot4",
        },
        {
          flex: 1,
          values: [
            "东城区",
            "西城区",
            "崇文区",
            "宣武区",
            "朝阳区",
            "丰台区",
            "石景山区",
            "海淀区",
            "门头沟区",
            "房山区",
            "通州区",
            "顺义区",
            "昌平区",
            "大兴区",
            "平谷区",
            "怀柔区",
          ],
          className: "slot5",
          textAlign: "left",
        },
      ],
      isWechat: isWechat(),
    };
  },
  //监听属性 类似于data概念
  computed: {
    detailData: {
      get() {
        return this.$store.state.detailData;
      },
      set(value) {
        this.$store.state.detailData = value;
      },
    },
    isLoading() {
      return this.$store.state.isLoading;
    },
  },
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    goCar() {
      this.$router.push({ path: "/carpage" });
    },
    scrollPage() {
      let top1 = document.documentElement.scrollTop;
      if (top1 > 50) {
        this.bgFlag = false;
      } else {
        this.bgFlag = true;
      }
      let detailArr = [];
      detailArr.push(document.getElementById("detail_0"));
      detailArr.push(document.getElementById("detail_1"));
      detailArr.push(document.getElementById("detail_2"));
      detailArr.push(document.getElementById("detail_3"));
      let { scrollY } = window;
      detailArr.reduce((sum, currentDetail, index) => {
        if (sum) {
          return sum;
        }
        if (scrollY < currentDetail.offsetTop - 90) {
          this.current = index;
          sum = true;
        }
        return sum;
      }, 0);
    },
    currentStyle(index) {
      this.current = index;
      let detail = document.querySelector("#detail_" + index);
      let op = detail.offsetTop - window.scrollY - 370;
      window.scrollBy({
        top: op,
        behavior: "smooth",
      });
    },
    pop() {
      this.showMask = !this.showMask;
    },
    hide() {
      this.showMask = !this.showMask;
    },
    abolish() {
      this.showMask = !this.showMask;
    },
    hidepop() {
      let carList = {
        ru_id: this.detailData.ru_id,
        rz_shopName: this.detailData.rz_shopName,
        isShopSelect: true,
        children: [
          {
            goods_id: this.detailData.goods_id,
            goods_name: this.detailData.goods_name,
            goods_thumb: this.detailData.goods_thumb,
            goods_price: this.detailData.shop_price,
            buyNum: this.buynum,
            isSelect: true,
            ru_id: this.detailData.ru_id,
          },
        ],
      };
      this.$store.commit("addCarListData", carList);
      alert('加入成功')
      this.showMask = false;
    },
    // evaluation() {
    //   console.log(1);
    // },
    sent_to_the() {
      this.addressPopupVisible = !this.addressPopupVisible;
    },
    onValuesChange(picker, values) {
      this.url = values.join(" ");
      let provinces = city.provinces.province;
      //市数据
      let cityArr = [];
      provinces.forEach((item) => {
        if (values[0] == item.ssqname) {
          item.cities.city.forEach((value) => {
            cityArr.push(value.ssqname);
          });
        }
      });
      picker.setSlotValues(1, cityArr);

      //区县数据
      let areaArr = [];
      provinces.forEach((item) => {
        if (values[0] == item.ssqname) {
          item.cities.city.forEach((value) => {
            if (values[1] == value.ssqname) {
              value.areas.area.forEach((ele) => {
                areaArr.push(ele.ssqname);
              });
            }
          });
        }
      });
      picker.setSlotValues(2, areaArr);
    },
    showPoster() {
      this.sharePopupVisible = true;
    },
    show(num) {
      if (num == 1) {
        this.sharePopupVisible = false;
        this.showFriend = true;
      } else if (num == 2) {
        this.sharePopupVisible = false;
        this.showPosterCanvas = true;
      }
    },
    shift() {
      this.showPosterCanvas = false;
      this.showFriend = false;
    },
  },
  beforeCreate() {}, //生命周期 - 创建之前
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {
    this.$router.afterEach(() => {
      (document.body.scrollTop = 0), (document.documentElement.scrollTop = 0);
    });
  },
  beforeMount() {}, //生命周期 - 挂载之前
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {
    window.addEventListener("scroll", this.scrollPage);
    // console.log(this.detailData.data.data.goods_id);
  },
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {
    window.removeEventListener("scroll", this.scrollPage);
    this.detailData = [];
  }, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang="less">
.goods-page {
  .loading {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    img {
      width: 5rem;
      height: 5rem;
    }
    width: 100%;
    height: 100%;
  }
  .mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  .mask-bottom {
    width: 100%;
    height: 40%;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    .cancel {
      position: absolute;
      right: 2rem;
      top: 2rem;
      z-index: inherit;
      i {
        font-size: 2rem;
      }
    }
    .mask-header {
      position: relative;
      padding: 1.5rem;
      display: flex;
      justify-content: space-around;
      align-items: center;
      margin-top: 2rem;
      .mask-pic {
        img {
          width: 9.2rem;
          height: 9.2rem;
        }
      }
      .mask-right {
        margin-left: 2rem;
        overflow: hidden;
        div {
          margin-top: 1rem;
        }
        .title {
          font-size: 1.4rem;
        }
        .price {
          font-size: 1.8rem;
          color: #f44c36;
        }
        .inventory {
          display: flex;
          span {
            color: #999;
            font-size: 1.3rem;
          }
          .num {
            margin-left: 1rem;
          }
        }
      }
    }
    .center {
      padding: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: -1rem;
      .count {
        font-size: 1.4rem;
        color: #000;
        font-weight: 700;
      }
      .fun {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 3rem;
        button {
          width: 3rem;
          height: 100%;
          border-radius: 0 5px 5px 0;
        }
        input {
          text-align: center;
          width: 5rem;
        }
      }
    }
    .mask-func {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 5.4rem;
      display: flex;
      justify-content: space-around;
      align-items: center;
      button {
        width: 40%;
        height: 42px;
        line-height: inherit;
        border: none;
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        padding: 0 0.5rem;
        background-color: #ffc707;
        border-radius: 10em;
      }
      .b2 {
        background-color: #f91f28;
      }
    }
  }
  .active {
    color: #000;
    position: relative;
    font-size: 1.6rem;
    font-weight: 700;
    &::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 2.5rem;
      bottom: 0.5rem;
      -webkit-transform: translateX(-50%);
      transform: translateX(-50%);
      width: 2.6rem;
      height: 0.3rem;
      background: -webkit-gradient(
        linear,
        left top,
        right top,
        from(#f91f28),
        to(rgba(255, 79, 46, 0.35))
      );
      background: linear-gradient(90deg, #f91f28, rgba(255, 79, 46, 0.35));
    }
  }
  .goods-nav1 {
    transition: all 0.5s ease-in-out;
    width: 100%;
    height: 8%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    .goods-back,
    .goods-collection,
    .goods-more {
      color: #fff;
      width: 2.5rem;
      height: 2.5rem;
      line-height: 2.5rem;
      border-radius: 50%;
      text-align: center;
      background: rgba(41, 47, 54, 0.4);
    }
    .goods-back {
      i {
        font-size: 0.4rem;
      }
    }
    .goods-function {
      color: transparent;
      width: 50%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      font-size: 1.5rem;
    }
  }
  .goods-nav2 {
    transition: all 0.5s ease-in-out;
    background-color: hsla(0, 0%, 100%, 0.95);
    width: 100%;
    height: 8%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    .goods-back,
    .goods-collection,
    .goods-more {
      width: 2.5rem;
      height: 2.5rem;
      line-height: 2.5rem;
      text-align: center;
    }
    .goods-back {
      i {
        font-size: 0.4rem;
      }
    }
    .goods-function {
      width: 50%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      font-size: 1.5rem;
    }
  }
  .goods-img {
    position: relative;
    img {
      width: 100%;
      height: 37.5rem;
    }
    .goods-sequence {
      position: absolute;
      bottom: 3rem;
      right: 0;
      min-width: 5rem;
      height: 2.5rem;
      line-height: 2.5rem;
      border-top-left-radius: 1.25rem;
      border-bottom-left-radius: 1.25rem;
      text-align: center;
      color: #fff;
      font-size: 1.4rem;
      background-color: rgba(41, 47, 54, 0.4);
      z-index: 10;
      span {
        font-size: 1.8rem;
      }
    }
  }
  .goods-spend {
    background-color: #fff;
    padding: 1.1rem 1.1rem 0.8rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .goods-situation {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      .goods-price {
        font-size: 1.6rem;
        font-weight: 700;
        display: inline-block;
        color: rgb(242, 14, 40);
        span {
          font-size: 2rem;
        }
      }
      .goods-discount {
        font-size: 1.4rem;
        color: rgb(153, 153, 153);
        margin-left: 8px;
        text-decoration: line-through;
      }
      .goods-sale {
        font-size: 1.4rem;
        color: #999;
        margin-left: 1rem;
      }
    }
    .goods-share {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 1.2rem;
      i {
        margin: 0;
        color: #333;
        font-weight: 700;
      }
      span {
        font-size: 1.2rem;
        margin-top: 0.2rem;
        color: #333;
      }
    }
  }
  .goods-test {
    padding: 1rem;
    background-color: #fff;
    .goods-text {
      display: flex;
      span {
        text-align: center;
        line-height: 2rem;
        width: 4rem;
        color: #fff;
        border-radius: 1rem;
        background: linear-gradient(90deg, #f91f28, #ff4e2e);
      }
      h2 {
        margin-left: 1rem;
      }
    }
    .goods-guess {
      margin-top: 1rem;
      font-size: 1.4rem;
      color: #999;
    }
  }
  .goods-vip {
    width: calc(100% - 2rem);
    background-color: #f7f8fc;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .vip {
      display: flex;
      align-items: center;
      span {
        font-weight: 400;
        font-size: 1.4rem;
        margin-left: 1rem;
      }
      img {
        width: 2rem;
        height: 2rem;
      }
    }
    .open {
      padding: 0.3rem 0.5rem 0.4rem 0.8rem;
      background: #000;
      border-radius: 1.5rem;
      font-size: 1.2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #e3c49e;
    }
  }
  .goods-preferential {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.5rem 1.1rem;
    font-size: 1.4rem;
    background-color: #fff;
    .goods-include {
      display: flex;
      justify-content: space-between;
      .title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #000;
      }
      .center {
        flex: 1;
        margin-left: 1rem;
        .activity {
          img {
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
          }
        }
        .vouchers {
          div {
            display: flex;
            align-items: center;
            .s1 {
              height: 2.5rem;
              padding: 0 0.8rem;
              text-align: center;
              border-radius: 0.2rem;
              margin: 1.2rem 0.8rem 0 0;
              color: #f44c36;
              background: #fee9e6;
              line-height: 2.5rem;
            }
            .s2 {
              display: flex;
              margin: 1rem 0.8rem 0 0;
              overflow: hidden;
              .s3 {
                flex: 1;
                position: relative;
                min-width: 7rem;
                height: 2.5rem;
                line-height: 2.3rem;
                padding: 0 0.5rem;
                text-align: center;
                border-radius: 0.2rem;
                border: 0.1rem solid #f44c36;
                color: #f44c36;
                &::before {
                  content: "";
                  position: absolute;
                  top: 50%;
                  left: -0.4rem;
                  transform: translateY(-50%);
                  width: 0.6rem;
                  height: 0.6rem;
                  border-radius: 50%;
                  border: 0.1rem solid #f44c36;
                  background-color: #fff;
                  z-index: 3;
                }
                &::after {
                  content: "";
                  position: absolute;
                  top: 50%;
                  right: -0.4rem;
                  transform: translateY(-50%);
                  width: 0.6rem;
                  height: 0.6rem;
                  border-radius: 50%;
                  border: 0.1rem solid #f44c36;
                  background-color: #fff;
                  z-index: 3;
                }
              }
            }
          }
        }
      }
    }
  }
  .goods-center {
    background-color: #fff;
    .select {
      padding: 1rem;
      display: flex;
      justify-content: space-between;
      margin-top: 1rem;
      .title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #000;
      }
      .main {
        flex: 1;
        margin-left: 1rem;
        font-size: 1.4rem;
      }
      .spe {
        display: flex;
        align-items: center;
        img {
          width: 2rem;
          height: 2rem;
          border-radius: 50%;
          margin-right: 1rem;
        }
      }
    }
  }
  .goods-bottom {
    position: fixed;
    height: 10%;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: #fff;
    z-index: 999;
    .kefu,
    .car {
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-content: center;
      span {
        margin-top: 1rem;
      }
    }
    .addcar,
    .buy {
      text-align: center;
      line-height: 4.334rem;
      font-size: 1.5rem;
      color: white;
      width: 32%;
      height: 65%;
      border-radius: 4rem;
      font-weight: 700;
    }
    .addcar {
      background-color: #ffc707;
    }
    .buy {
      background-color: red;
    }
  }
  .evaluation,
  .detail,
  .recommend,
  .letme {
    width: calc(100% - 2rem);
    padding: 1rem;
    height: 30rem;
    background-color: skyblue;
  }
  .detail {
    background-color: #77a1d3;
  }
  .recommend {
    background-color: #79cbca;
  }
  .letme {
    background-color: #e684ae;
  }
  .address {
    .mint-popup {
      width: 100%;
      height: 40rem;
      border-top-left-radius: 2rem;
      border-top-right-radius: 2rem;
      .title {
        height: 4.4rem;
        position: relative;
        margin-bottom: 2rem;
        div {
          width: 100%;
          height: 4.4rem;
          line-height: 4.4rem;
          position: absolute;
          top: 2rem;
          left: 0;
          text-align: center;
          font-size: 1.6rem;
          color: #000;
          font-weight: 700;
        }
        i {
          font-size: 1.6rem;
          width: 4.4rem;
          height: 4.4rem;
          line-height: 4.4rem;
          position: absolute;
          top: 2rem;
          right: 0;
          text-align: center;
        }
      }
    }
    .picker {
      .picker-items {
        .picker-slot-left {
          text-align: center;
        }
      }
    }
  }
  .share {
    .mint-popup {
      height: 4.4rem;
      width: 100%;
      .flex-share {
        display: flex;
        div {
          flex: 1;
          height: 4.4rem;
          text-align: center;
          line-height: 4.4rem;
          color: #fff;
        }
        .send-friend {
          background-color: #77a1d3;
        }
        .create-poster {
          background-color: #e684ae;
        }
      }
    }
  }
}
</style>
